package com.gears_software.bbnetwork.views;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gears_software.bbnetwork.R;
import com.gears_software.bbnetwork.datas.models.DrawHistoryModel;

/**
 * 提现记录Item
 * 
 * @author Administrator
 */


@EViewGroup(R.layout.tixian_item)
public class TiXianItemView extends LinearLayout {
	
	@ViewById
	TextView tixian_time;//提现时间
	@ViewById
	TextView tixian_money;//提现金额
	
	@ViewById
	TextView txt_state;//提现状态
	
	public TiXianItemView(Context context) {
		super(context);
		
	}
	public void bind(DrawHistoryModel model){
		if(model!=null){
			tixian_time.setText(model.getDrawTime());
			tixian_money.setText(model.getDrawAmount());
			if(model.getStatus()!=null&&model.getStatus().equals("0")){
				txt_state.setText("处理中");
			}else{
				txt_state.setText("已提现");
			}
		}
	}
	

}
